add_gdal_driver(TARGET gdal_RDB SOURCES rdbdataset.cpp PLUGIN_CAPABLE_IF "NOT GDAL_USE_JSONC_INTERNAL")
gdal_standard_includes(gdal_RDB)
target_include_directories(gdal_RDB PRIVATE ${GDAL_VECTOR_FORMAT_SOURCE_DIR}/geojson)
gdal_target_link_libraries(TARGET gdal_RDB PRIVATE LIBRARIES rdbcpp)

if (GDAL_USE_JSONC_INTERNAL)
  gdal_add_vendored_lib(gdal_RDB libjson)
else ()
  gdal_target_link_libraries(gdal_RDB PRIVATE ${JSONC_TARGET})
endif ()
